package net.trustie.pipeline;

import javax.annotation.Resource;

import net.trustie.dao.SlashdotNews_Dao;
import net.trustie.model.slashdot_Model;

import org.springframework.stereotype.Component;

import core.PageModelPipeline;
import us.codecraft.webmagic.Task;

@Component("slashdot_pipeline")
public class SlashdotNews_pipeline  implements PageModelPipeline<slashdot_Model>{
	@Resource
	private SlashdotNews_Dao  slashdotnews_Dao;

	@Override
	public void process(slashdot_Model slashdotnews_Model, Task task) {
		// TODO Auto-generated method stub
		slashdotnews_Dao.add(slashdotnews_Model);

}
}